package cn.iocoder.yudao.module.enterprise.controller.admin.account.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.util.List;

@Schema(description = "管理后台 - 碳排放仿真 Response VO")
@Data
@ToString(callSuper = true)
public class AccountSimulationRespVO {

    @Schema(description = "总排放量", required = true)
    @NotNull(message = "总排放量不能为空")
    private Double total;

    @Schema(description = "排放情况列表", required = true)
    @NotNull(message = "排放情况列表不能为空")
    private List<AccountSimulation> emissionList;

    @Data
    public static class AccountSimulation {

        @Schema(description = "source", required = true)
        @NotNull(message = "source不能为空")
        private String source;

        @Schema(description = "target", required = true)
        @NotNull(message = "target不能为空")
        private String target;

        @Schema(description = "value", required = true)
        @NotNull(message = "value不能为空")
        private Double value;
    }
}
